<!DOCTYPE html>
<html lang="ru" data-ng-app>
    <head>
        <title>Squid Proxy allowed sites: see config</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- bootstrap Latest compiled and minified CSS  -->
	<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
	<!-- Optional theme -->
	<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">


	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>

        <script type="text/javascript">

            function Ctrl($scope, $http) {

                var url = "http://u.crimsec.com:8080/squid-adm/rst/allowed/sites?callback=JSON_CALLBACK";

                $http.jsonp(url).success(function(data, status, headers) {
                    $scope.sites = data;
                });
            }

        </script>

    </head>
    <body data-ng-controller="Ctrl" class="container">
	<div class="row">
	    <div class="col-md-12">
                <h5>Allowed sites</h5>
		        <div>
			    <ul>
				<li data-ng-repeat="site in sites">
				    <span >{{site}}</span>
				</li>
			    </ul>
    			</div>
	    </div>
	</div>
    </body>
</html>
